const baseurl ='https://vue3antdv-7gcma6b228a5b287-1256680780.tcloudbaseapp.com/api/v2/'
Page({
  onLoad(option){
    this.setData({
      ...option  //三个点展开
    })
    wx.request({
      url:baseurl+this.data.type+'/'+this.data.id,
      success:res=>{
        console.log('xq:',res)
        let mygenres = res.data.genres.join('/')
        let myactors = res.data.actors.map(v=>{
          return v.name
        }).slice(0,3).join('/')
        this.setData({
          xq:res.data,
          mygenres,
          myactors
        })
      }
    })
    wx.request({
      url:baseurl+this.data.type+'/'+this.data.id+'/tags?count=5',
      success:res=>{
      let ttag=res.data.ttag.map(v=>{
        return v
      }).slice(0,5)
        this.setData({
          bq:res.data,
          ttag
        })
      }
    })
    wx.request({
      url:baseurl+this.data.type+'/'+this.data.id+'/interests',
      success:res=>{
        this.setData({
          dp:res.data
        })
      }
    })
  }
})